import React, { Component } from "react";

class App extends Component {
  render() {
    return (
      <div>
        <h3>App组件</h3>
      </div>
    );
  }
}
function Gaojie(Zujian) {
  return class Moxing extends Component {
    dianji = () => {
      console.log("点击方法");
    };
    render() {
      let nextProps = {
        msg: "杨洋",
        zhiye: "演员",
      };
      return <Zujian {...nextProps} dianji={this.dianji}></Zujian>;
    }
  };
}
export default Gaojie(App);
